package com.ruoyi.system.api.factory;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.system.api.RemoteSysRoleService;
import com.ruoyi.system.api.domain.SysExpression;
import com.ruoyi.system.api.domain.SysRole;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

public class RemoteSysRoleFallbackFactory implements FallbackFactory<RemoteSysRoleService> {
    @Override
    public RemoteSysRoleService create(Throwable cause) {
        return new RemoteSysRoleService() {
            @Override
            public TableDataInfo list(SysRole role) {
                return null;
            }

            @Override
            public R<List<SysRole>> selectRoleList(SysRole role) {
                return null;
            }

            @Override
            public R<List<SysExpression>> selectSysExpressionList(SysExpression sysExpression) {
                return null;
            }

            @Override
            public R<SysRole> selectRoleById(String roleId) {
                return null;
            }
        };
    }
}
